From 68210203d318e9fa4cbc993b681356a45df91939 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Apr 2005 22:25:26 +0000 Subject: [PATCH] Justin fixes mem leak introduced in last change. --- gpsbabel/coastexp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpsbabel/coastexp.c b/gpsbabel/coastexp.c index 15b50aae3..faef555f5 100755 --- a/gpsbabel/coastexp.c +++ b/gpsbabel/coastexp.c @@ -168,8 +168,11 @@ ce_start(void *data, const char *el, const char **attr) static void ce_end(void *data, const char *el) { - if (0 == strcmp(el, "Route")) + if (0 == strcmp(el, "Route")) { + if (!doing_rtes) + ce_free_route(currentRoute); inRoute = 0; + } else if (0 == strcmp(el, "Mark")) inMark = 0; } -- 2.30.2